import requests#pip3 install requests
from bs4 import BeautifulSoup #pip3 install bs4
 
url='https://www.kuaikanmanhua.com/tag/47'
h={'user-agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36'}
r=requests.get(url,headers=h)
#print(r.text)
soup=BeautifulSoup(r.content,'html5lib')

print(type(soup.title))
print(soup.title)

__layout = soup.find('div',id='__layout')

manhuas = __layout.find_all('div',{'class':'ItemSpecial fl'})

huas = []
for manhua in manhuas:
    hua ={}
    #名字
    hua['name'] = manhua.find('span', class_='itemTitle').get_text()
    #图片网址
    
    #hua['img'] = manhua.find('span',class_='imgCover').find('img')['src']
    hua['img'] = manhua.find('span',class_='imgCover')
    #hua['img'] = manhua.find_elemenst_by_class_name('imgCover').find_element_by_tag_name('img')

     #作者
    hua['author'] = manhua.find('span',class_='author fl').get_text()
    huas.append(hua)
       
print(huas[0])
